<!--
Projekt: ProductionASSistant
Autor: Paweł Świtalla
Email: swit3k@gmail.com
-->
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <?php foreach($view['assetic']->stylesheets(array('@PACoreBundle/Resources/public/css/*'), array(), array('output'=>'css/main.css')) as $url): ?>
    <link type="text/css" rel="stylesheet" href="<?php echo $view->escape($url)  ?>" />
    <?php endforeach; ?>
    <?php foreach($view['assetic']->javascripts(array('@PACoreBundle/Resources/public/js/*'), array(), array('output'=>'js/combined.js')) as $url): ?>
    <script type="text/javascript" src="<?php echo $view->escape($url) ?>"></script>
    <?php endforeach; ?>
    <script type="text/javascript">
      var defaultTab = 'StoreTab';
    </script>
    <title> ProductionAssist </title>
    <style type="text/css" rel="stylesheet">
      .ajaxLoader{
        background-image: url('<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/ajax-loader.gif') ?>');
        background-repeat: no-repeat;
      }
    </style>
  </head>
  <body>
    <div class="cPage">
      <div class="cHeader">
        <div class="cRibbon">
          <div class="cTabs">
            <ul>
              <li class="active"><a href="#StoreTab"> Magazyn </a></li>
              <li class="inactive"><a href="#ProductionTab"> Produkcja </a></li>
              <li class="inactive"><a href="#FinanceTab"> Finanse </a></li>
              <li class="inactive"><a href="#SettingsTab"> Ustawienia </a></li>
            </ul>
          </div>
          <div class="cIcons">
            <div class="active" id="StoreTab">
              <div class="cIconsGroup">
                <div class="cIcon">
                  <a href="">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/list.png') ?>" />
                    <p>Lista</p>
                  </a>
                </div>
                <div class="cIcon">
                  <a href="">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/new_file.png') ?>" />
                    <p>Nowy</p>
                  </a>
                </div>
                <div id="title">Materiał</div>
              </div>
              <div id="separator"></div>
              <div class="cIconsGroup">
                <div class="cIcon">
                  <a href="">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/new_file.png') ?>" />
                    <p>Nowe</p>
                  </a>
                </div>
                <div class="cIcon">
                  <a href="">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/list.png') ?>" /><p>Realizowane</p></a></div>
                <div class="cIcon"><a href=""><img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/list.png') ?>" /><p>Zapisane</p></a></div>
                <div class="cIcon"><a href=""><img src="http://placehold.it/40x40" /><p>Szukaj</p></div>
                <div id="title">Zamówienie</div>
              </div>
              <div id="separator"></div>
              <div class="cIconsGroup">
                <div class="cIcon"><a href=""><img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/list.png') ?>" /><p>Lista</p></a></div>
                <div class="cIcon"><a href=""><img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/new_file.png') ?>" /><p>Nowe WZ</p></a></div>
                <div class="cIcon"><a href=""><img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/new_file.png') ?>" /><p>Nowe PZ</p></a></div>
                <div id="title">Dokument</div>
              </div>
              <div id="separator"></div>
              <div class="cIconsPalette">
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
                <p><img src="http://placehold.it/20x20" /></p>
              </div>
            </div>
            <div class="inactive" id="ProductionTab"></div>
            <div class="inactive" id="FinanceTab"></div>
            <?php if($view['security']->isGranted('ROLE_ADMIN')): ?>
            <div class="inactive" id="SettingsTab">
              <div class="cIconsGroup">
                <div class="cIcon">
                  <a href="javascript:App.loadContent('<?php echo $view['router']->generate('AdminUsersNew') ?>')">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/new_file.png') ?>" />
                    <p>Nowy</p>
                  </a>
                </div>
                <div class="cIcon">
                  <a href="javascript:App.loadContent('<?php echo $view['router']->generate('AdminUsersList') ?>')">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/list.png') ?>" />
                    <p>Lista</p>
                  </a>
                </div>
                <div class="cIcon">
                  <a href="javascript:App.loadContent('<?php echo $view['router']->generate('AdminUsersShowId', array('id' => 10)) ?>')">
                    <img src="<?php echo $view['assetic']->image('@PACoreBundle/Resources/public/images/icons/list.png') ?>" />
                    <p>Szukaj</p>
                  </a>
                </div>
                <div id="title">Użytkownicy</div>
              </div>
            </div>
            <?php endif; ?>
            <div class="cInfo">
              <h1>Info</h1>
              <p>Imię i Nazwisko: </p>&nbsp;&nbsp;<span>Paweł Świtalla</span>
              <p>Zalogowano: </p>&nbsp;&nbsp;<span>19.19.1999</span>
              <p>Data: </p>&nbsp;&nbsp;<span>20.10.2010</span>
              <p>Moduł: </p>&nbsp;&nbsp;<span>Magazyn</span>
              <p>Wersja: </p>&nbsp;&nbsp;<span><?php echo 'cool' ?></span>
            </div>
          </div>
        </div>
      </div>
      <div class="cBody">
        <div class="cContent">
          <?php if(isset($internalTemplate)) echo $view->render($internalTemplate['template'], $internalTemplate['options']) ?>
          <div class="cToolbox"></div>
        </div>
      </div>
      <div class="cFooter">
        <div class="cFooterContent"></div>
        <div class="cLogo"></div>
      </div>
    </div>
  </body>
</html>
